#ifndef GRAPHICS_EXCEPTIONS_RENDERABLE_ERROR_H
#define GRAPHICS_EXCEPTIONS_RENDERABLE_ERROR_H

//Graphics
#include "GLError.h"

class RenderableError:public GLError
{
	public:
			RenderableError(const std::string& message="", Renderable* d=NULL);

			/**********
			* GETTERS *
			**********/
			/** Overrides parent's message() to prepend the name of the renderable object */
			std::string message();
			/** Returns the renderable object or NULL */
			Renderable* renderable();

	private:
			Renderable* _renderable;
};

#endif
